﻿using System;

namespace WeBlog.Models
{
    public class Role
    {
        public int RoleValue { get; private set; }
        public string Name { get; private set; }
        public string Description { get; private set; }

        public Role( int roleValue, string name, string description)
        {
            RoleValue = roleValue;
            Name = name;
            Description = description;
        }

        public const string Admin = "Admin";
        public const string Editor = "Editor";
        public const string Author = "Author";
        public const string Contributor = "Contributor";
        public const string Subscriber = "Subscriber";

        public static string List( params string[] roles ) {
            return String.Join(", ", roles);
        }
    }
}